package com.shop.service;

import com.shop.mapper.UserMapper;
import com.shop.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 用户逻辑层的实现类
 */
@Service
public class UserServiceImpl implements UserService {
    //业务逻辑曾调用Mapper层
    @Autowired
    private UserMapper userMapper;
    @Override
    public User getUserByEmail(String email) {
        //具体的业务逻辑层的代码
        User user=userMapper.findByEmail(email);
        return user;
    }
}
